package com.naiterui.ehp.bp.bo.statistics;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 经纪人数据统计-订单相关记录
 * 
 * @author yangfuya
 * @since 2022/2/10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("经纪人数据统计-订单相关记录")
public class AsOrderRecordBO implements Serializable {
    private static final long serialVersionUID = -1120661968204548477L;

    @ApiModelProperty("大区Id")
    private Long areaId;

    @ApiModelProperty("省区Id")
    private Long provinceAreaId;

    @ApiModelProperty("经纪人id")
    private Long agentId;

    @ApiModelProperty("医生id")
    private Long doctorId;

    @ApiModelProperty("患者id")
    private Long patientId;

    @ApiModelProperty("处方id")
    private Long recipelId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("生成日期")
    private Date generateDate;

    @ApiModelProperty("订单号")
    private String orderSn;

    @ApiModelProperty("商品数量")
    private Integer productNumber;

    @ApiModelProperty("订单价格")
    private Integer orderPrice;

    @ApiModelProperty("下单时间")
    private Date orderTime;

    @ApiModelProperty("订单药品列表")
    private List<AsOrderProductBO> orderProductList;

    @ApiModelProperty("创建时间")
    private Date createdAt;

    @ApiModelProperty("创建人")
    private String createdBy;
}
